package com.qubuyer.core.http

/**
 * Author: linwg
 * Time: 2021/2/4 0004
 * Description:
 */
interface IHttpResult<T> {
    fun ok(): Boolean {
        return code() == HttpStatusCode.SUCCESS
    }

    fun data(): T?

    fun code(): Int

    fun msg(): String?
}